package com.unisound.tracelog.client.core.util;

import com.unisound.tracelog.client.core.model.StartSpan;
import com.unisound.tracelog.client.core.service.TraceLogService;
import com.unisound.tracelog.common.model.span.EndSpan;
import com.unisound.tracelog.common.model.span.StartSpanResult;

public class TraceLogUtil {
    private static TraceLogService traceLogService = SpringUtil.getBean(TraceLogService.class);

    public static StartSpanResult start(StartSpan startSpan) {
        return traceLogService.start(startSpan);
    }

    public static void end(EndSpan endSpan) {
        traceLogService.end(endSpan);
    }

}
